package com.mk.admin.util;

import java.io.File;
import java.io.IOException;

public class FileTool {
    private FileTool() {

    }
    public static File createFile(String path,String fileName){
        File dir=new File(path);
        if(!dir.exists()){
            dir.mkdirs();
        }
        File file=new File(dir,fileName);
        if(!file.exists()){
            try {
                file.createNewFile();
            } catch (IOException e) {
                e.printStackTrace();
            }
        }
        return file;
    }
}
